<template>
	<div>
		<transition name="router-fade" mode="out-in"><!-- 这里是会被缓存的视图组件-->
			<keep-alive>
				<router-view v-if="$route.meta.keepAlive"></router-view>
			</keep-alive>
		</transition>
		<transition name="router-fade" mode="out-in">	
		<!-- 这里是不被缓存的视图组件-->
			<router-view v-if="!$route.meta.keepAlive"></router-view>
		</transition>
	</div>
</template>

<script>
	import svgIcon from './components/common/svg';
	export default {
		components: {
			svgIcon
		},
		mounted() {}
	}
</script>

<style lang="scss">
	@import './style/common';
</style>
